<extend name="Base/common"/>
<block name="style">
    <style type="text/css">
        .weui-form-preview{margin-bottom: 5px; }
        .weui-form-preview__hd{padding-bottom: 0;}
        .weui-form-preview__bd{padding-top: 0;}
        .weui-form-preview__item em.weui-form-preview__value{color: #000;}   
    </style>
</block>
<block name="body">

        <notempty name="_list">
            <php>
                $LOAN_STATUS = C('LOAN_STATUS');
            </php>
        <foreach name="_list" item="vo" >
            <php>
                if($vo['status']==0){
                    $url = U('agreement?id='.$vo['id']);
                }else{
                    $url = U('loanview?id='.$vo['id']);
                }
            </php>
            <a href="{$url}" style="background:url(__IMG__/you.png) no-repeat fixed right;">
                
                <div class="weui-form-preview__bd" style="position:relative;">
                    <div class="weui-form-preview__item">
                        <label class="weui-form-preview__label" style="font-size:16px;color:#434242;">借款金额</label>
                        <em class="weui-form-preview__value" style="font-size:16px;color:#434242;margin-right:8px;">{$vo.money}</em>
                    </div>

                    <div class="weui-form-preview__item">
                            <label class="weui-form-preview__label">{$vo.create_time|date='Y-m-d',###}</label>
                            <if condition="$vo[status] eq 1">
                                <span class="weui-form-preview__value" style="color:orange;margin-right:8px;">待审核</span>
                            <elseif condition="$vo[status] eq 2"/>
                                <span class="weui-form-preview__value" style="color:orange;margin-right:8px;">审核中</span>
                            <elseif condition="$vo[status] eq 3"/>
                                <span class="weui-form-preview__value" style="color:red;margin-right:8px;">不通过</span>
                            <elseif condition="$vo[status] eq 4"/>
                                <span class="weui-form-preview__value" style="color:orange;margin-right:8px;">待打款</span>
                            <elseif condition="$vo[status] eq 5"/>
                                <span class="weui-form-preview__value" style="color:orange;margin-right:8px;">待还款</span>
                            <elseif condition="$vo[status] eq 6"/>
                                <span class="weui-form-preview__value" style="color:green;margin-right:8px;">已还款</span>
                            <elseif condition="$vo[status] eq -1"/>
                                <span class="weui-form-preview__value" style="color:red;margin-right:8px;">已取消</span>
                            </if>
                            
                        </div>
                    <img src="__IMG__/you.png" style="height:100%;width:8px;position:absolute;ringht:0;top:-2px;">


                </div>
                <div style="height:1px;width:100%;border-bottom:1px solid #c9caca;"></div>

            </a>
        </foreach>
       <else/>
        <div class="page__bd">
            <div class="weui-loadmore weui-loadmore_line">
                <span class="weui-loadmore__tips">暂无借款</span>
            </div>
        </div>
        </notempty>
</block>
<block name="script">
    <script >

    </script>

</block>